<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=8">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="keywords" content="广州市公安局荔湾区分局监督室">
  <meta name="description" content="主办单位：广州市公安局荔湾区分局监督室">
  <title><?php echo $lang->intro;?></title>
  <?php
  $themeRoot    = $webRoot . "theme/";

  $defaultTheme = $webRoot . 'theme/default/';
  css::import($defaultTheme . 'zh-cn.default.css');
  css::import($themeRoot . 'default/style.css');

  css::import($webRoot.'module/user/css/reset.css');
  css::import($webRoot.'module/user/css/base.css');
  css::import($webRoot.'module/user/css/index.css');
  echo html::favicon($webRoot . 'favicon.ico');
  if(isset($pageCSS)) css::internal($pageCSS);
  ?>
  <style>
    .detail {
      width: 950px;
    }

    .detail li {
      float: left;
      min-width: 45px;
      display: list-item;
      list-style-type: none;
      list-style-image: url(imgs/dot2.jpg);
      margin: 0px 20px 0px 5px;
    }

    .myselect {
      background-color: #fff;
      border-left: 1px solid #d9d9d9 ! important;
      border-right: 1px solid #d9d9d9 ! important;
      color: #0473d9;
    }
    .table-bordered td, .table-bordered th {
      border: 1px solid #989090 ! important;
    }
    .table>thead>tr>th{
      border: 1px solid #989090 ! important;
    }
  </style>

  <?php
  js::import($webRoot.'module/user/js/jquery.js');
  js::import($webRoot.'module/user/js/zui.min.js');
  js::import($webRoot.'module/user/js/zui.chart.min.js');
  ?>
  <?php
  js::import($webRoot.'module/user/js/index.js');
  ?>
</head>

<body>
<style>
  .mar_r10 {
    margin-right: 1%;
  }
  .common_all .mar_r10:nth-child(2n){margin-right: 0;}
  .common_content2 {
    padding: 10px;
  }
  ul{padding-left: 0 ! important;}
  .tab_ul li a{margin-right: 0;}
  #triggerModal{display: block;}
  a{color: inherit;}
  .an_nav ul li a{color: #fff ! important;}
</style>
<div class="an_container">
  <div class="an_header">

    <div class="an_top">
      <div class="an_top_link w_content f_all">
        <p>广州市公安局荔湾区分局监督室 </p>
        <ul class="list_line">
          <li class="top_icon1">
            <a href="javascript:window.external.AddFavorite('')">加入收藏</a>
          </li>

          <li class="top_icon2">
            <?php echo html::a($this->createLink('user', 'login'),'进入后台')?>
          </li>
          <li class="top_icon3">
            <a>个人中心</a>
          </li>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="an_top_banner w_content" style="background: url(<?php echo $webRoot.$img->imgsrc; ?>) no-repeat top center;background-size: 100% 211px;
"></div>
    </div>
    <div class="an_nav" style="background-color:#0575D9">
      <ul class="w_content">

        <li>
          <?php echo html::a($this->createLink('user', 'index'),'首页')?>
        </li>

        <li>
          <a href="<?php echo $this->createLink("user","punit")?>" class="current">警务监督考评</a>
        </li>

        <li>
          <a href="<?php echo $this->createLink("user","munit")?>">问责情况统计</a>
        </li>

        <div class="clear"></div>
      </ul>
    </div>
  </div>
  <!--an_header end -->
  <div class="an_content w_content">
    <div class="an_main w_content">
    <div class="common_all">

      <div class="panel-heading text-center">
        <strong>
          <span style="position: relative">
          <a class="dropdown-toggle nian" style="cursor: pointer" data-toggle="dropdown" data-years="<?php echo $time;?>"> <?php echo $time.'年';?></a>
          <ul class="dropdown-menu checknian">
            <?php foreach($years as $key=>$val):?>
              <?php if($key<=$nowyears):?>
                <li><a style="cursor: pointer" data-years="<?php echo $key?>"><?php echo $val;?></a></li>
              <?php endif?>
            <?php endforeach?>
          </ul>
          </span>
          各单位警务监督考评表
        </strong>
      </div>
      <table class="table table-data table-bordered text-center table-fixedHeader">
        <thead>
        <tr class="text-center">
          <th rowspan="2">单位</th>
          <th rowspan="2">得分</th>
          <th colspan="5">问责方式（人次）</th>
        </tr>
        <tr class="text-center">
          <th>扣分</th>
          <th>通报批评</th>
          <th>责令谈话</th>
          <th>谈话提醒</th>
          <th>诫勉谈话</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($punit as $uval):?>
          <tr>
            <td>
              <a href="<?php echo $this->createLink("user","people","unit={$uval->unit_id}&time={$time}")?>" target="_blank" style="color: #141414">
                <?php echo $uval->unit_name;?>
              </a>
            </td>
            <td><?php echo $uval->sums;?></td>
            <td>
              <?php if($uval->score):?>
                <?php echo html::a($this->createLink('statistics', 'pappraisal', "unitid={$uval->unit_id}&type=score&start={$uval->startDate}&end={$uval->endDate}&sum={$uval->score}"),$uval->score,"","data-toggle='modal' class='model'") ;?>
              <?php endif?>
            </td>
            <td>
              <?php if($uval->notification):?>
                <?php echo html::a($this->createLink('statistics', 'pappraisal', "unitid={$uval->unit_id}&type=notification&start={$uval->startDate}&end={$uval->endDate}&sum={$uval->notification}"),$uval->notification,"","data-toggle='modal' class='model'") ;?>
              <?php endif?>
            </td>
            <td>
              <?php if($uval->zlth):?>
                <?php echo html::a($this->createLink('statistics', 'pappraisal', "unitid={$uval->unit_id}&type=zlth&start={$uval->startDate}&end={$uval->endDate}&sum={$uval->zlth}"),$uval->zlth,"","data-toggle='modal' class='model'") ;?>
              <?php endif?>
            </td>
            <td>
              <?php if($uval->remind):?>
                <?php echo html::a($this->createLink('statistics', 'pappraisal', "unitid={$uval->unit_id}&type=remind&start={$uval->startDate}&end={$uval->endDate}&sum={$uval->remind}"),$uval->remind,"","data-toggle='modal' class='model'") ;?>
              <?php endif?>
            </td>
            <td>
              <?php if($uval->admonishing):?>
                <?php echo html::a($this->createLink('statistics', 'pappraisal', "unitid={$uval->unit_id}&type=admonishing&start={$uval->startDate}&end={$uval->endDate}&sum={$uval->admonishing}"),$uval->admonishing,"","data-toggle='modal' class='model'") ;?>
              <?php endif?>
            </td>
          </tr>
        <?php endforeach?>

        </tbody></table>

      </div>



    </div>
    </div>
    <!--   common_all end  -->
<!-- an_content end -->
<div class="an_footer f_all" id="link">

  <div class="foot_link">
    <ul class="w_content">
      <li>友情链接：</li>
      <?php foreach($links as $k=>$link) :?>
      <li>
        <a href="<?php echo $link->linkurl;?>" target="_blank"><?php echo $link->linkname;?></a>
       <?php if($k!=count($links)-1) :?> |<?php endif ?>
      </li>
        <?php endforeach ?>
    </ul>
  </div>
  <div class="foot_word w_content">
    <p>责任单位：荔湾区公安分局监督室&nbsp;&nbsp;&nbsp;&nbsp;技术支持：荔湾公安分局指挥中心科技科&nbsp;&nbsp;&nbsp;&nbsp;</p>
    <p>版权所有 Copyright @ 2017 广州市公安局荔湾区分局 All Rights Reserved&nbsp;&nbsp;&nbsp;&nbsp;</p>
  </div>
</div>
<!-- an_footer end -->
</div>
<!--   an_container end   -->
<script>
  $('.checknian').find('li').find('a').click(function(){
    $('.nian').text($(this).text());
    $('.nian').attr("data-years",$(this).attr("data-years"));
    var time = $(this).attr("data-years");
    var url = "/index.php?m=user&f=punit&starttime="+time;
    window.location.href =url;
  })

</script>
</body>

</html>